package com.hu.eurekaconsumer.FeignInterFace;

import com.hu.eurekaconsumer.FeignHystrix.HelloHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author lsp
 * @Date 2019/12/28 14:41
 * @Version 1.0
 */
@FeignClient(name="spring-cloud-producer" ,fallback = HelloHystrix.class)
public interface HelloFeign {

    @RequestMapping(value = "/hello")
    public String hello(@RequestParam(value = "name") String name);
}
